package com.wss.agent.maven.plugin.validate;

import org.apache.maven.project.MavenProject;

import com.wss.agent.maven.plugin.constants.Constants;

public class InputValidator {
	
	/* --- Static methods --- */
	
	/**
	 * Checks if the plugin was run in folder without pom file.
	 * 
	 * @param project The maven project. 
	 * @return True if the folder is not a maven project folder, false o/w
	 */
	public static boolean isStandAlonePom(MavenProject project) {
		return project.getArtifactId().equals(Constants.STANDALONE_POM_ARTIFACT_ID) && 
			project.getGroupId().equals(Constants.STANDALONE_POM_GROUP_ID) &&
			project.getVersion().equals(Constants.STANDALONE_POM_VERSION);
	}
}
